import {
	request
} from "@/utils/request.js"

// 领取优惠券
export const reciveCouponApi = (data) => {
	return request("/third_api/coupon_collection", data, "POST")
}

// 我的优惠券列表
export const onwCouponListApi = (data) => {
	return request("/third_api/my_coupon", data, "GET")
}

// 兑换优惠券
export const exchangeCouponApi = (data) => {
	return request("/third_api/coupon_exchange", data, 'GET')
}

// 获取用户vip抵扣券
export const vipCounponApi = (data) => {
	return request("/third_api/vip_coupon", data, "GET")
}

// 通过商品ID查询优惠券
export const ownCouponListByProductApi = (data) => {
	return request("/third_api/get_coupon_by_goods_id", data, "GET")
}
